<!doctype html>
<html lang="en" ng-app="betsApp">
<head>
  <meta charset="utf-8">
  <title>Eventlist</title>
  <link rel="stylesheet" href="../css/app.css">
  <link rel="stylesheet" href="../css/bootstrap.css">
  <script src="../js/angular.js"></script>
  <script src="../js/controllers.js"></script>
</head>
<body ng-controller="EventListCtrl">

  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span2">
        <!--Sidebar content-->

        Search: <input ng-model="query">
        Sort by:
        <select ng-model="orderProp">
          <option value="eventPosted">When posted</option>
          <option value="likes">Most likes</option>
        </select>

      </div>
      <div class="span10">
        <!--Body content-->

        <ul class="phones">
          <li ng-repeat="event in events | filter:query | orderBy:orderProp" class="thumbnail">
            <a href="#/events/{{event.id}}" class="thumb"><img ng-src="{{event.imageUrl}}"></a>
            <a href="#/events/{{event.id}}">{{event.name}}</a>
            <p>{{event.description}}</p>
          </li>
        </ul>

      </div>
    </div>
  </div>

</body>
</html>
